package com.wb.spring.boot.autoconfigure.annotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @Author deeprado
 * @Date 2022/8/31 9:16
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WbClient {
    String value() default "";

    String contextId() default "";

    @AliasFor("value")
    String name() default "";

    String path() default "";

    boolean decode404() default false;

    String[] qualifiers() default {};

    Class<?> fallback() default void.class;

    Class<?> fallbackFactory() default void.class;

    boolean primary() default true;

    /**
     * http 请求是否异步
     */
    boolean async() default false;

    int maxAttempts() default 0;

}
